// 首页面板

import { request } from "@/utils/request.js";

/**
 * 获取统计数量
 * @returns
 */
export const getDataNow = (params = {}) => {
  return request({
    url: "prediction/api/getDataNow",
    method: "get",
    params
  });
};

/**
 * 获取30天的折线图数据
 * @returns
 */
export const getOpDataBy10Days = (
  params = {
    day: 30
  }
) => {
  console.log(params);
  return request({
    url: "prediction/api/getOpDataBy10Days",
    method: "get",
    params
  });
};

/**
 * 卸车数据
 * @returns
 */
export const getGoodTypeTj = (params = {}) => {
  return request({
    url: "prediction/api/getGoodTypeTj",
    method: "get",
    params
  });
};

/**
 * 排行
 * @returns
 */
export const getOperationalDataBytime = (
  params = {
    type: 3
  }
) => {
  return request({
    url: "prediction/api/getOperationalDataBytime",
    method: "get",
    params
  });
};
